package org.example.alicloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.example.alicloud.model.CommonResult;
import org.example.alicloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gaoqiang
 */
@RestController
@Slf4j
public class CircleBreakerController {
    @Autowired
    private PaymentService paymentService;

    @GetMapping("/consumer/payment/hash/{id}")
    public CommonResult paymentSQL(@PathVariable("id") Long id){
        return paymentService.paymentSQL(id);
    }
}
